package main

import (
	"io/ioutil"
	"fmt"
)

func main() {
	var str = "hello world from ioutil\r\n"
	var err = ioutil.WriteFile("D:/dev/golang/dadi/test.txt", []byte(str), 0644)
	if (err != nil) {
		fmt.Println("write file error:", err)
	} else {
		fmt.Println("write file success")
	}
}